class Player(object):
    numbers = 0 # 类属性
    def __init__(self, name,age,city): #初始化函数
        self.name = name # 实例属性
        self.age = age
        self.city = city
        Player.numbers += 1
    def show(self): # 实例的方法
        print('我是荣耀王者的第%d个玩家，我的名字是%s，我来自%s' % (Player.numbers,self.name,self.city))

jj = Player("林俊杰",30,"新加坡")
jj.show()